import { App } from 'vue'
import user, { key as userKey, useUserStore } from './user'

export { useUserStore }

const stores = [{ moduleName: user, key: userKey }]

export default (app: App<Element>) => {
  stores.forEach(({ moduleName, key }) => {
    app.use(moduleName, key)
  })
}
